import { definestore } from '@/utils/store'

export const useCounter = definestore(() => {
  const count = ref(0)

  function inc() {
    count.value++
  }

  const scope = getCurrentScope()

  return {
    scope,
    count,
    inc
  }
})
